﻿<%@ Page Title="查看留言" Language="C#" MasterPageFile="~/UserClient/layout.master" AutoEventWireup="true"
    CodeBehind="Note.aspx.cs" Inherits="Sunimage.Spjg.Web.UserClient.Note" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link href='<%=ResolveUrl("~/Themes/Default/UserClient/Bulletin.css") %>' type="text/css"
        rel="stylesheet" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphWorkspace" runat="server">
    <br />
    <fieldset>
        <div>
            <asp:Label ID="lblRegCode" runat="server" AssociatedControlID="tbxTitle" Text="标题:"
                CssClass="add"></asp:Label><asp:TextBox ID="tbxTitle" runat="server" Width="26em"></asp:TextBox><asp:RequiredFieldValidator
                    ID="RfvRegCodeAdd" runat="server" ErrorMessage="(必填)" Display="Dynamic" ControlToValidate="tbxTitle"
                    ValidationGroup="NewData"></asp:RequiredFieldValidator>
        </div>
        <div>
            <asp:Label ID="lblName" runat="server" AssociatedControlID="tbxContent" Text="内容:"
                CssClass="add"></asp:Label><asp:TextBox ID="tbxContent" runat="server" TextMode="MultiLine"
                    Rows="5" Columns="50">
    
                </asp:TextBox>
            <asp:Button ID="btnAdd" ValidationGroup="NewData" runat="server" Text="发布" OnClick="btnAdd_Click" />
        </div>
    </fieldset>
    <br />
    <h2>
        留言</h2>
    <hr />
    <asp:Repeater ID="rptNote" runat="server" 
        onitemdatabound="rptNote_ItemDataBound">
        <HeaderTemplate>
            <ul class="NoteList">
        </HeaderTemplate>
        <ItemTemplate>
            <li>
                <div>
                    <big><b>
                        <%# Eval("Title") %></b></big>
                </div>
                <div>
                    <span class="CreateTime">
                        <%# Eval("CreateTime")%></span> <span class="author">
                            [<asp:Literal ID="ltrAuthor" runat="server"></asp:Literal>]</span>
                </div>
                <div>
                    <%# Eval("Content") %></div>
                <hr></hr>
            </li>
            <%--  <li>
                <div>
                    <%# Eval("Title") %>
                </div>
                <div>
                    <span class="CreateTime">
                        <%# Eval("CreateTime") %></span></div>
                <div>
                    <%# Eval("Content") %></div>
            </li>--%>
        </ItemTemplate>
        <FooterTemplate>
            </ul>
        </FooterTemplate>
    </asp:Repeater>
    <div class="PagerPanel">
        <webdiyer:AspNetPager ID="pager" runat="server" ShowPageIndexBox="Always" PageIndexBoxType="DropDownList"
            CssClass="paginator" CurrentPageButtonClass="cpb" TextBeforePageIndexBox="Page: "
            HorizontalAlign="Justify" PageSize="20" AlwaysShow="true" OnPageChanged="pager_PageChanged"
            CustomInfoHTML="共%PageCount%页，共%RecordCount%条数据" ShowCustomInfoSection="Right">
        </webdiyer:AspNetPager>
    </div>
</asp:Content>
